package com.ttech.twitter.servlet;

import com.ttech.twitter.stream.TweetSenderThread;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import java.io.IOException;

/**
 * User: TTACANSEVER
 */
public class InitServlet extends HttpServlet {

    public void init(ServletConfig servletConfig) throws ServletException {
        try {
            new TweetSenderThread().start();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}
